import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type UserPoints } from "../../interface";

/**
 * 保存或更新 UserPoints 信息
 * /userPoints
 */
export function postUserPoints(input: UserPoints, config?: AxiosRequestConfig) {
    return request.post<DeepRequired<boolean>>(`/userPoints`, input, config);
}
